<head>
	<meta charset="utf8">
</head>

<?php
session_start();
$SociNo = $_SESSION['SociNo']; // 社团编号
include("../functions/db_conn.php");
$JobNo=trim($_POST["JobNo"]);  // 岗位编号
$JobName=trim($_POST["JobName"]);  // 岗位名称
$JobInfo=trim($_POST["JobInfo"]); // 岗位介绍
 // 插入job表的sql语句
$AddJob_SQL = "INSERT INTO job VALUES(\"$JobNo\",\"$SociNo\",\"$JobName\",\"$JobInfo\")";

// 执行sql语句
$AddJob_Result=mysql_query($AddJob_SQL);
if ($AddJob_Result) {
	// 插入成功
	echo "<script>";
	echo "location.href = \"addJob.php\" ";
	echo "</script>";
} else {
	// 插入失败
	echo "<script>";
	echo "alert(\"添加失败，请重新添加！\"); ";
	echo "location.href = \"addJob.php\" ";
	echo "</script>";
}
?>